package com.openspring.platform.dao;

import java.util.List;
import com.openspring.framework.dao.GenericDAO;
import com.openspring.platform.model.Dept;

public interface DeptDAO extends GenericDAO<Dept, Long> {
	
	/**
	 * 查询所有子节点
	 * @param parentId
	 * @return
	 */
	List<Dept> queryAllChildren(Long id);
	
	/**
	 * 查询当前子节点
	 * @param parentId
	 * @return
	 */
	List<Dept> queryChildren(Long id);
	
	boolean isExistChindren(Long id);
}
